try:
    a = 3 / 0
finally:
    import sys

    print(sys.exc_info())
    pass